#ifndef COMMON_UTIL_
#define COMMON_UTIL_

#include <time.h>

unsigned long get_current_time()
{
    struct timeval cur_time;
    gettimeofday(&cur_time, NULL);

    unsigned long result = 1000000 * cur_time.tv_sec + cur_time.tv_usec;

    return result;
}

#endif